package com.xsomnus.rpc.common.util;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/22 0022 17:54
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
public class IdUtil {

    private final static SnowFlakeIdWorker idWorker = new SnowFlakeIdWorker(0, 0);

    public static String getId() {
        return String.valueOf(idWorker.nextId());
    }
}
